package com.test.spring.test.xml.bean.selfLabel;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * 创建Handler文件，扩展自NamespaceHandlerSupport，目的是将组件注册到Spring容器中
 */
public class MyNamespaceHandler extends NamespaceHandlerSupport {
	public void init() {
		registerBeanDefinitionParser("user2", new UserBeanDefinitionParser());
	}
}
